package shiyan;

//主类 Application
public class Application {
 public static void main(String[] args) {
     // 创建模拟器实例
     Simulator simulator = new Simulator();
     
     // 播放 Dog 和 Cat 的声音
     simulator.playSound(new Dog());
     simulator.playSound(new Cat());
 }
}
